<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div style="padding: 5px; background: none repeat scroll 0% 0% rgb(239, 239, 239); text-align: right;">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" id="action-post" icon="icon-save">保存</a>|
    <a href="javascript:;" class="easyui-linkbutton" plain="true" icon="icon-cancel" onclick="$('#window').window('close');">退出</a>
</div>
<div style="text-align: right;">
<form id="AdminUserForm" name="AdminUserForm" action="index.php?file=sysuser&action=editApparatus&submit=true" method="POST">
<table width="100%">
  <tbody>
  <tr>
    <td class="label">机构名称</td>
    <td align="left">
      <input gtbfieldid="3" name="names" id="login_name" size="30" class="easyui-validatebox" required="true" missingmessage="部门名称不能为空" type="text" value="{$Apparatus['names']}">
    </td>
  </tr>
  <tr>
    <td class="label">机构简介</td>
    <td align="left">
      <input gtbfieldid="3" name="infos" id="login_name" size="30" class="easyui-validatebox" required="true" missingmessage="部门简介不能空" type="text" value="{$Apparatus['infos']}">
    </td>
  </tr><input type="hidden" name="jid" value= "{$Apparatus['jid']}"/>
  </tbody></table>
<script type="text/javascript">
$('#login_name').focus()
$("#action-post").click(function(){
	$('#AdminUserForm').submit();
});
$('#AdminUserForm').form({
    success:function(data){
//    	alert(data);return;
    	JSONData = $.evalJSON(data);
    	if(JSONData.status=="error"){
    		$.messager.alert('提示信息', JSONData.msg );
    	}else{
    		window.location.reload();
    	}
    }
});
</script>
</form>
</div>

</body></html>